package FishandLake;

public class FishandLake {
	public static void main(String[] args) {
		Fish niqiu = new Fish();
		System.out.println(niqiu.weight);
		Lake taihu = new Lake();
		Lake dongtinghu = new Lake();
		Lake hangzhouxihu = new Lake();
		dongtinghu.setFish(niqiu);
		hangzhouxihu.setFish(niqiu);
		taihu.setFish(niqiu);
		taihu.eat(15);
		System.out.println(niqiu.weight);
		System.out.println(taihu.fish.weight);
		System.out.println(dongtinghu.fish.weight);
		dongtinghu.eat(30); 
		System.out.println(hangzhouxihu.fish.weight);
	}
}
